<?php

/**
 * 
 * defines an abstract Element model
 * 
 * getType() has to be overwritten
 * 
 * @author Evan
 *
 */
abstract class Element
{
	
	private $id;
	private $content;
	private $order;
	private $content_id;
	
	
	public function __construct($id = NULL, $content = '', $order='', $content_id = '')
	{
		$this->id = $id;
		$this->content = $content;
		$this->order = $order;
		$this->content_id = $content_id;
	}
	
	/*
	 * Getter und Setter
	 */
	public function getId()
	{
		return $this->id;
	}
	
	public function getContent()
	{
		return $this->content;
	}
	
	public function getOrder()
	{
		return $this->order;
	}
	
	public static abstract function getType();
	
	public function getContentId()
	{
		return $this->content_id;
	}
	
	public function setId($id)
	{
		$this->id = $id;
	}
	
	public function setContent($content)
	{
		$this->content = $content;
	}
	
	public function setOrder($order)
	{
		$this->order = $order;
	}
	
	public function setContentId($content_id)
	{
		$this->content_id = $content_id;
	}
	
}
?>